import java.io.FileInputStream;
import java.io.IOException;

/*
 * @Author: Starfish_DL
 * @Date: 2020-10-28 15:12:04
 * @LastEditors: Starfish_DL
 * @LastEditTime: 2020-10-28 15:19:25
 * @CurrentVersion: 1.0
 * @Description: 
 */

public class Test6_3 {
    public static void main(String[] args) {
        try {
            FileInputStream f=new FileInputStream("D:\\java\\java-learning\\homework_1028\\myfile.txt");
            int b=f.read();
            while (b!=-1) {
                System.out.print((char)b);
                b=f.read();
            }
            f.close();
        } catch (IOException e) {
            //done: handle exception
            System.out.println("\n"+e.getMessage());
        } finally {
            System.out.println("\nThat's over!");
        }
    }
}
